package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 【请填写功能名称】对象 sys_activity
 * 
 * @author ruoyi
 * @date 2020-11-11
 */
public class SysActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Integer activityId;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String activityTitle;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String activityContent;

    /** 活动状态（0正常 1关闭） */
    @Excel(name = "活动状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    /** 活动视频链接 */
    @Excel(name = "活动视频链接")
    private String activityViodeo;

    public void setActivityId(Integer activityId) 
    {
        this.activityId = activityId;
    }

    public Integer getActivityId() 
    {
        return activityId;
    }
    public void setActivityTitle(String activityTitle) 
    {
        this.activityTitle = activityTitle;
    }

    @NotBlank(message = "公告标题不能为空")
    @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
    public String getActivityTitle() 
    {
        return activityTitle;
    }
    public void setActivityContent(String activityContent) 
    {
        this.activityContent = activityContent;
    }

    public String getActivityContent() 
    {
        return activityContent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setActivityViodeo(String activityViodeo) 
    {
        this.activityViodeo = activityViodeo;
    }

    public String getActivityViodeo() 
    {
        return activityViodeo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("activityTitle", getActivityTitle())
            .append("activityContent", getActivityContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("activityViodeo", getActivityViodeo())
            .toString();
    }
}
